{% extends 'Base/main.content.lists.div.html.twig' %}
{% import 'Base/list_item.twig' as listItem %}
{#默认不能删除和新增#}
{#{% block addBtn %}{% endblock %}#}
{#{% block delBtn %}{% endblock %}#}

{% block tableHead %}
    <tr>
        <th align="" width="5%">选择</th>
        <th align="" width="20%">问题</th>
        <th align="" width="">发起人</th>
        <th align="" width="">创建时间</th>
        <th align="" width="20%">回复</th>
        <th align="" width="">回复人</th>
        <th align="" width="">回复时间</th>
        <th align="" width="">状态</th>
        <th align="" width="">是否置顶</th>
        <th align="" width="10%">操作</th>
    </tr>
{% endblock %}
{% block tableList %}
    {% for Entity in lists %}
        <tr>
            <td align='' width=''>
                <span class="checkall"><input lay-skin="primary" type="checkbox" name="ids[]" value="{{ Entity.Question_id }}"/></span>
            </td>
            <td align='' width='' id='question_{{ Entity.Question_id }}'>
                {{ listItem.text('question',Entity.Question_question,Entity.Question_id) }}
            </td>
            <td align='' width='' id='create_Name_{{ Entity.Question_id }}'>
                {{ listItem.text('create_Name',Entity.Question_create_Name,Entity.Question_id) }}
            </td>
            <td align='' width='' id='createtime_{{ Entity.Question_id }}'>
                {{ listItem.text('createtime',Entity.Question_createtime,Entity.Question_id) }}
            </td>
            <td align='' width='' id='answer_{{ Entity.Question_id }}'>
                {{ listItem.text('answer',Entity.Question_answer,Entity.Question_id) }}
            </td>
            <td align='' width='' id='answer_User_{{ Entity.Question_id }}'>
                {{ listItem.text('answer_User',Entity.Question_answer_User,Entity.Question_id) }}
            </td>
            <td align='' width='' id='answertime_{{ Entity.Question_id }}'>
                {{ listItem.text('answertime',Entity.Question_answertime,Entity.Question_id) }}
            </td>
            <td align='' width='' id='status_{{ Entity.Question_id }}'>
                {#{{ listItem.text('status',Entity.Question_status,Entity.Question_id) }}#}
                {{ Entity.Question_status == 1?"已答复":"等待答复" }}
            </td>
            <td align='' width='' id='is_Top_{{ Entity.Question_id }}'>
                {{ listItem.switch('is_Top',Entity.Question_is_Top,Entity.Question_id) }}
            </td>
            <td align='' width=''>
                {{ listItem.edit('Question','',Entity.Question_id) }}
                {{ listItem.copy('Question','',Entity.Question_id) }}
            </td>
        </tr>
    {% endfor %}
{% endblock %}
{% block script %}
{% endblock %}

